home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / sizeof.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  719 b   |  26 lines

  1. .TH SIZEOF
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. SIZEOF
  5.  
  6.  
  7.  
  8.  NumericType SIZEOF( ListType List | PolyType Poly |
  9.                      CurveType Crv | StringType Str )
  10.  
  11. Returns the length of a list if List, the number of polygons
  12. if Poly, the length of the control polygon if Crv, or the
  13. number of characters in string if Str.
  14. If, however, only one polygon is in Poly, it returns the number
  15. of vertices in that polygon.
  16.  
  17. Example:
  18.  
  19.    len = SIZEOF( list( 1, 2, 3 ) );
  20.    numPolys = SIZEOF( axes );
  21.    numCtlpt = SIZEOF( circle( vector( 0, 0, 0 ), 1 ) );
  22.  
  23. will assign the value of 3 to the variable len, set numPolys
  24. to the number of polylines in the axes object, and set numCtlPt to 9, the
  25. number of control points in a circle.
  26.